/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thienphuc.patient.bo;

import java.util.List;
import thienphuc.patient.dto.DonViTinh;

/**
 *
 * @author QuocDat
 */
public interface DonViTinhBO {

    /**
     * Get all DonViTinh
     * @return
     * @throws Exception 
     */
    List<DonViTinh> getAll() throws Exception;

    /**
     * Get DonViTinh by MaDonViTinh
     * @param maDonViTinh
     * @return
     * @throws Exception 
     */
    DonViTinh getById(int maDonViTinh) throws Exception;

    /**
     * Get DonViTinh by tenDonViTinh
     * @param tenDonViTinh
     * @return
     * @throws Exception 
     */
    List<DonViTinh> getByTenDonViTinh(String tenDonViTinh) throws Exception;

    /**
     * Insert DonViTinh
     * @param donViTinh
     * @return
     * @throws Exception 
     */
    boolean insertDonViTinh(DonViTinh donViTinh) throws Exception;
    
    /**
     * Update DonViTinh
     */
    boolean updateDonViTinh(DonViTinh donViTinh) throws Exception;
    
}
